package itsm.isperp.framework.message.service;

import java.util.Collection;

import itsm.isperp.framework.message.domain.IMessagePacket;

/**
 * 
 * 消息队列,现阶段只支持持久化队列
 * 
 * @author lizx
 * @date 2013-8-27
 * 
 */
public interface MessageQueueService {

	/**
	 * 添加到发送队列
	 * 
	 * @param msssage
	 *            消息包 {@link IMessagePacket}
	 */
	public <T extends IMessagePacket> void addToMessageQuery(T message);

	/**
	 * 添加到发送队列
	 * 
	 * @param msssage
	 *            消息包 {@link IMessagePacket}
	 */
	public <T extends IMessagePacket> void addToMessageQuery(
			Collection<T> messages);
}
